package com.collection.provider.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.collection.api.ApplyMainService;
import com.collection.api.entity.ApplyMain;
import com.collection.api.entity.ApplyMainExample;
import com.collection.provider.biz.ApplyMainBiz;
@Service(version ="1.0.0")
public class ApplyMainServiceImpl implements ApplyMainService{
	@Autowired
	private ApplyMainBiz applyMainBiz;


	@Override
	public int deleteByPrimaryKey(Integer applyMainId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(ApplyMain record) {
		return applyMainBiz.insert(record);
	}

	@Override
	public int insertSelective(ApplyMain record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ApplyMain> selectByExample(ApplyMainExample example) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ApplyMain selectByPrimaryKey(Integer applyMainId) {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public int updateByPrimaryKeySelective(ApplyMain record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(ApplyMain record) {
		// TODO Auto-generated method stub
		return 0;
	}
	/**
	  *
	  *@destruction：通过用户的applyid查询用户的申请信息
	  *@author：zongzhiping
	  *@date:2018年1月16日
	  *@param args
	  *
	**/
	@Override
	public Map<String, Object> getUserApplyInfoByApplyId(Integer applyMainId) {
		return applyMainBiz.selectUserApplyInfoByApplyId(applyMainId);
	}

}
